<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<c:set var="ctx" scope="page" value="${request.contextPath}" />
<!DOCTYPE  >
<html >
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0,viewport-fit=cover">
    <title>工单原因</title>
    <link rel="stylesheet" type="text/css" href="${ctx}/static/weui/1.1.2/weui-for-work.min.css"/>
    <script type="text/javascript" src="${ctx}/static/jquery/jquery-1.8.3.min.js"></script>
    <%--<script type="text/javascript" src="https://res.wx.qq.com/open/libs/weuijs/1.1.2/weui.min.js"></script>--%>
    <!-- 企业微信的JS-SDK -->
    <%--<script type="text/javascript" src="http://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>--%>

</head>
<body style="background-color: #f8f8f8">
<div class="page__bd">
    <div class="weui-cells__title">工单原因</div>
    <div class="weui-cells">
        <div class="weui-cell">
            <div class="weui-cell__bd">
                <p>工单号：<span><c:out value="${repaireInfo.workOrderId}"/></span></p>
            </div>
        </div>
        <div class="weui-cell">
            <div class="weui-cell__bd">
                <p>姓名：<span><c:out value="${repaireInfo.creatorName}"/></span></p>
            </div>
        </div>
        <%--<div class="weui-cell">
            <div class="weui-cell__bd">
                <p>部门：<span><c:out value="${repaireInfo.repaireDept}"/></span></p>
            </div>
        </div>--%>
        <div class="weui-cell">
            <div class="weui-cell__bd">
                <p>手机号：<span><c:out value="${repaireInfo.createMobile}"/></span></p>
            </div>
        </div>
        <div class="weui-cell">
            <div class="weui-cell__bd">
                <p>分机：<span><c:out value="${repaireInfo.creatorPhone}"/></span></p>
            </div>
        </div>
        <div class="weui-cell">
            <div class="weui-cell__hd"><label class="weui-label">处理说明：</label></div>
            <div class="weui-cell__bd">
                <input class="weui-input"  name="processSpecification" placeholder="请输入维修处理说明"/>
            </div>
        </div>
        <div class="weui-btn-area">
            <a class="weui-btn weui-btn_primary"  href="#" onclick="javascript:submitRemark(${repaireInfo.id})" id="showTooltips">提交</a>
        </div>
    </div>
    <script>
        $(function () {
            //然后被跳转的页：
            sessionStorage.setItem("need-refresh", true);
        });
        function submitRemark(id){
            location.href = '${ctx}/weixin/engineer/addRemark/'+id+'?processSpecification='+$("input[name=processSpecification]").val()

            }


    </script>

</body>
</html>
